﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using RpgLibrary;

namespace RpgLibrary.ItemClasses
{   
    public abstract class BaseItemData : IRpgDataObject
    {
        #region Field Region
        
        public List<string> AllowableClasses = new List<string>();
        public string Type;
        public int Price;
        public float Weight;
        public bool Equipped;
        
        #endregion
        
        #region Property Region

        string name;
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        #endregion
        
        #region Constructor Region
        
        public BaseItemData()
        {}

        #endregion
        
        #region Abstract Method Region
        
        public override string ToString()
        {
            return String.Format("{0}, {1}, {2}, {3}",
                Name,
                Type,
                Price,
                Weight);
        }
        #endregion
    }
}